import request from "../utils/request.js";

const api = {
  getUserId: "/getUserId",
  getUserInfo: "/getUserInfo",
};

export const getUserId = () => {
  return request({ url: api.getUserId, method: "get" });
};

export const getUserInfo = (id) => {
  return request({ url: api.getUserInfo, method: "get", params: { id } });
};
